/**
 * Created by karl.zheng on 2018/4/11.
 */
export default (state=false, action) => {
    switch(action.type){
        case "SHOW_ALERT":
            return true;
        case "CLOSE_ALERT":
            return false;
        default:
            return state
    }
}